import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 单独全局引入部分常用vant组件
import { Form } from 'vant';
import { Field } from 'vant';
import { Popup } from 'vant';
import { Toast } from 'vant';
import { Loading } from 'vant';
import { Button } from 'vant';
import { Icon } from 'vant';
import { Lazyload } from 'vant'
Vue.component('van-form',Form)
Vue.component('van-field',Field)
Vue.component('van-popup',Popup)
Vue.component('van-loading',Loading)
Vue.component('van-button',Button)
Vue.component('van-icon',Icon)
Vue.component(Toast)
import '@/assets/iconfont/iconfont.css'
// VConsole插件
// import vConsole from './utils/vconsole'
// Vue.prototype.$vConsole = vConsole;

// plus配置
// import plus from '@/utils/plus.js'
// Vue.prototype.$plus = plus

// 表单校验规则
import formRules from '@/utils/form-validate'
Vue.prototype.$formRules = formRules

// 自定义组件注册
import '@/components/config'
// 引入全局样式表
import './style/index.less'
// 动态设置rem值
import 'amfe-flexible'

Vue.config.productionTip = false
Vue.use(Lazyload)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
